<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <c>
    <h slot="left" style="color: aqua">》</h>
    <h slot="center" style="color: red">中间&nbsp;&nbsp;</h>
    <h slot="right" style="color: aqua">'''</h>
  </c>
</div>

<template id="cpn">
  <div>
    <p>啥也不是</p>
    <h1>sha ye bu shi</h1>
    <slot name="left"><span>左边</span></slot>
    <slot name="center"><span>中边</span></slot>
    <slot name="right"><span>右边</span></slot>
  </div>
</template>
<script src="../js/vue.js"></script>
<script>
  //let(变量)和const(常量)
  const app = new Vue({
    el: '#app',
    data: {
      message: '中国牛蛙！'
    },
    components: {
      c: {
        template: `#cpn`
      }
    }
  })
</script>
</body>
</html>